package com.example.demo.mp.entity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.core.base.BizEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 画布节点统计数据
 * </p>
 *
 * @author JXY
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("canvas_node_statistics")
public class CanvasNodeStatisticsEntity extends BizEntity<CanvasNodeStatisticsEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 画布id
     */
    @TableField("canvas_id")
    private Long canvasId;

    /**
     * 节点id
     */
    @TableField("node_id")
    private Long nodeId;

    /**
     * 进入节点数量
     */
    @TableField("enter_count")
    private Long enterCount;

    /**
     * 触达成功数量 (如果当前节点包含触达方式)
     */
    @TableField("reach_count")
    private Long reachCount;

    /**
     * 是否是目标节点  0-不是  1-是 (冗余)
     */
    @TableField("within_target")
    private Integer withinTarget;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
